package app.ep1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import app.ep1.bandejoes.BandejoesActivity;
import app.ep1.mapaUsp.MapaUspActivity;
import app.ep1.portoes.PortoesActivity;
import app.ep1.seminarios.SeminariosActivity;

public class EP1Activity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Button buttonMapaUsp = (Button) findViewById(R.id.buttonMapaUsp);
		buttonMapaUsp.setOnClickListener(new OnClickListener() {

			// @Override
			public void onClick(View v) {
				Intent i = new Intent(v.getContext(), MapaUspActivity.class);
				v.getContext().startActivity(i);
			}
		});

		Button buttonBandejao = (Button) findViewById(R.id.buttonBandejao);
		buttonBandejao.setOnClickListener(new OnClickListener() {

			// @Override
			public void onClick(View v) {
				Intent i = new Intent(v.getContext(), BandejoesActivity.class);
				v.getContext().startActivity(i);
			}
		});

		Button buttonPortoes = (Button) findViewById(R.id.buttonPortoes);
		buttonPortoes.setOnClickListener(new OnClickListener() {

			// @Override
			public void onClick(View v) {
				Intent i = new Intent(v.getContext(), PortoesActivity.class);
				v.getContext().startActivity(i);
			}
		});

		Button buttonSeminarios = (Button) findViewById(R.id.buttonSeminarios);
		buttonSeminarios.setOnClickListener(new OnClickListener() {

			// @Override
			public void onClick(View v) {
				Intent i = new Intent(v.getContext(), SeminariosActivity.class);
				v.getContext().startActivity(i);
			}
		});
	}
}